class MyClass{
    constructor(){
        this.age = 10
    }
}

let obj1 = new MyClass()
let obj2 = new MyClass()

obj1.age = 20
console.log(obj2.age) //10, obj2不受影响

console.log(obj2.hasOwnProperty('age')) //true